﻿//using MiniFox.Caching;
//using MiniFox.Components;
//using MiniFox.Net;
//using MiniFox.Net.Http;
//using MiniFox.Platform.Applications.Auth;
//using MiniFox.Platform.Applications.Configurations;
//using MiniFox.Platform.Applications.Models;
//using MiniFox.Platform.Applications.Providers;
//using MiniFox.Utility;

//namespace MiniFox.Platform.Applications
//{
//    /// <summary>
//    /// 
//    /// </summary>
//    public abstract class ApplicationServiceBase : ApiServiceBase
//    {
//        const string ORG_SVC_NAME = "org";
//        /// <summary>
//        /// 
//        /// </summary>
//        /// <param name="principal"></param>
//        protected ApplicationServiceBase(SystemPrincipal principal) : base(principal)
//        {
//        }
//        SystemUser _user;
//        /// <summary>
//        /// 获取当前用户信息
//        /// </summary>
//        /// <returns></returns>
//        public SystemUser CurrentSystemUser
//        {
//            get
//            {
//                if (_user == null)
//                {
//                    var service = this.GetHttpServiceByName(ORG_SVC_NAME, "user");

//                    _user = service.GetAsync<SystemUser>().Result;
//                }
//                return _user;
//            }
//        }

//    }
//}
